applicationwindw: Don't leak show-help-overlay action
authorTimm Bäder <mail@baedert.org>
Fri, 6 Oct 2017 14:30:31 +0000 (16:30 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 6 Oct 2017 14:30:31 +0000 (16:30 +0200)
gtk/gtkapplicationwindow.c

index df4b27bd0b171f51de4af494f3028f9dd751fc2f..37c87e34898cfb0bef8082de0b58a3f68644b171 100644 (file)
@@ -982,6 +982,7 @@ gtk_application_window_set_help_overlay (GtkApplicationWindow *window,
       g_signal_connect (action, "activate", G_CALLBACK (show_help_overlay), window);
 
       g_action_map_add_action (G_ACTION_MAP (window->priv->actions), G_ACTION (action));
+      g_object_unref (G_OBJECT (action));
     }
 }